<template>
  <div>
    <span v-text="a"></span>
    <br />
    <span>请输入你要购买的斤数:</span> <input type="text" v-model="c" />
    <br />
    <button>结账买单~</button>
    <div>
      结账单:
      <span>总价: {{ c * 10 }}</span>
      <span>折后价:{{ c * 10 * 0.8 }}</span>
      <span>省了:{{ c * 10 - c * 10 * 0.8 }} </span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      a: "苹果10元/斤,折扣<8折>",
      c: "",
    };
  },
  methods: {},
};
</script>

<style>
</style>